package com.swxc.ssm.service.impl;

import com.swxc.ssm.mapper.TeacherMapper;
import com.swxc.ssm.po.Teacher;
import com.swxc.ssm.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by admin on 2017/7/27.
 */
public class TeacherServicelmpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    public int deleteByPrimaryKey(Integer ID) {
        return teacherMapper.deleteByPrimaryKey(ID);
    }

    @Override
    public int insert(Teacher record) {
        return teacherMapper.insert(record);
    }

    @Override
    public int insertSelective(Teacher record) {
        return teacherMapper.insertSelective(record);
    }

    @Override
    public Teacher selectByPrimaryKey(Integer ID) {
        return teacherMapper.selectByPrimaryKey(ID);
    }

    @Override
    public int updateByPrimaryKeySelective(Teacher record) {
        return teacherMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Teacher record) {
        return teacherMapper.updateByPrimaryKey(record);
    }
}
